package thinking.in.spring.boot.samples.ienable.beandefinitionRegistrar;

import org.springframework.context.annotation.Import;
import thinking.in.spring.boot.samples.ienable.selctor.Server;
import thinking.in.spring.boot.samples.ienable.selctor.ServerImportSelector;

import java.lang.annotation.*;

@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Import(ServerImportBeanDefinitionRegister.class)
public @interface EnableServer {

    /**
     * 设置服务器
     */
    Server.Type type();
}
